<?php


namespace Xiaoguai\DesignPattern\DP005\Subject;


use Xiaoguai\DesignPattern\DP005\AbstractSubject;

class Subject extends AbstractSubject
{
    public $state;

    public function setState($state)
    {
        $this->state = $state;
        $this->notify();
    }
}